package com.ruyuan.user.server.domain.service;

import com.ruyuan.common.model.PageDTO;
import com.ruyuan.user.server.domain.model.AuthResource;
import com.ruyuan.user.server.domain.model.Authority;
import com.ruyuan.user.server.domain.service.request.PageQueryAuthResourceReq;

import java.util.List;

/**
 * @author xx
 */
public interface AuthorityDomainService {

    Long saveAuthResource(AuthResource authResource);

    List<Authority> queryAuthorityByResource(Long resourceId);

    PageDTO<AuthResource> queryAuthResourceByCondition(PageQueryAuthResourceReq req);

    void delAuthResource(Long resourceId);

    List<Authority> queryAuthorityByIds(List<Long> authorityIds);

    List<AuthResource> queryResourcesByIds(List<Long> resourceIds);

}
